package com.main.by.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.main.by.entity.bo.AdminLoginBO;
import com.main.by.entity.vo.AdminLoginVO;

public interface AdminService {
	
	/**
	 * 系统管理员登录
	 * @user Wendel
	 * 2016年1月18日
	 */
	public AdminLoginBO adminLogin(AdminLoginBO user, HttpServletRequest request, HttpServletResponse response) throws Exception;
	
	//添加管理员
	public boolean addAdmin(AdminLoginVO admin, HttpServletRequest request, HttpServletResponse response) throws Exception;
	
	public boolean updateAdminMethod(AdminLoginVO admin) throws Exception;
	
	//查询所有的管理员
	public List<AdminLoginVO> findAllAdmin(HttpServletRequest request) throws Exception;
	
	//根据Id查询管理员
	public AdminLoginVO findAdminById(int adminId) throws Exception;
	
	//根据Id删除管理员
	public boolean deleteAdminById(int adminId) throws Exception;
	
}
